<?php get_header(); ?>
<div class="wrap">
	<div class="main">
		<div class="fl">
			<div class="box post-list">
				<h2><?php wp_title('') ?><?php if (is_author()) : ?> 专栏<?php endif; ?></h2>
<?php if (is_author() && get_the_author_meta( 'description' ) ) : ?>
				<div class="author-info">
					<?php echo get_avatar( get_the_author_meta( 'user_id' ), 40, '', get_the_author() ); ?>
					<?php the_author_meta( 'description' ); ?>
				</div>
<?php endif; ?>
<?php if ( have_posts() ) : while (have_posts()) : the_post(); ?>
<?php if ( is_category( '1' ) ) {
	get_template_part('loop','log');
}elseif( is_category( '61' ) ){
	get_template_part('loop','free');
}else{
	get_template_part('loop');
}
?>
<?php if ($wp_query->current_post == 0) get_template_part('ad','list'); ?>
<?php endwhile; ?>
				<div class="page-bar"><?php pagenavi(); ?></div>
<?php else : ?>
				<p>暂无内容…</p>
<?php endif; ?>
			</div>
		</div>
<?php get_template_part('midbar'); ?>
	</div>
<?php get_sidebar(); ?>
</div>
<?php get_footer(); ?>